<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'form-login',
    'action'=>Yii::app()->createUrl('user/index/login'),
    'method'=>'post',
    'enableAjaxValidation'=>true,
    'clientOptions' => array(
        'validateOnSubmit' => true,
        'validateOnChange' => false,
    ),
)); ?>

<?php echo CHtml::errorSummary(array($user)); ?>

<?php echo $form->textField($user,'login',array(
    'id'=>'login-form-login',
    'placeholder'=>$user->getAttributeLabel('login').' *',
)) ?>
<?php echo $form->error($user,'login', array(
    'id'=>'login-form-login-error',
)); ?>

<?php echo $form->textField($user,'password',array(
    'id'=>'login-form-password',
    'placeholder'=>$user->getAttributeLabel('password').' *',
)) ?>
<?php echo $form->error($user,'password', array(
    'id'=>'login-form-password-error',
)); ?>

<?php echo CHtml::submitButton('Вход'); ?>

<?php $this->endWidget(); ?>